/*
{
  "id": 218,
  "pid": 18,
  "purchase_id": null,
  "itemId": 40,
  "webType": 2,
  "itemType": 2,
  "title": "MBX Collection Ast Mix 4",
  "code": "GBJ48",
  "dash": "Z",
  "price": "3.99",
  "price2": "4.50",
  "discount": null,
  "stock": "1600",
  "ordernums": 1601,
  "moq": "160",
  "max": null,
  "warehouse": 2,
  "thumb": "/upload/product/20240902/6c0451e1373efa545f37653436d604ab.jpg.webp",
  "switch": 0,
  "status": 1,
  "reced": 0,
  "created_at": "2024-09-02T07:10:07.000000Z",
  "orderPerscent": "100%",
  "casepack": null,
  "categoryName": [
    "Premium",
    "MatchBox",
    "Mattel"
  ]
}

名称 平台 货号 批次 分类 批发价 零售价 发货仓 交货期 已定出 开关 状态 操作
*/
export const Columns = [
  {
    type: 'selection',
    width: '55',
    'header-align': 'left'
  },
  {
    label: '名称',
    slotName: 'avatar',
    width: '120'
  },
  {
    prop: 'code',
    label: '货号',
    width: '200',
    slotName: 'code'
  },
  {
    prop: 'dash',
    label: '批次',
    width: '100',
    slotName: 'code'
  },
  {
    prop: 'price',
    label: '批发价',
    width: '100'
  },
  {
    prop: 'price2',
    label: '零售价',
    width: '100'
  },
  {
    prop: 'warehouse',
    label: '发货仓',
    width: '100'
  },
  {
    prop: 'moq',
    label: '交货期',
    width: '100'
  },
  {
    prop: 'ordernums',
    label: '已定出',
    width: '100'
  },
  {
    prop: 'switch',
    label: '开关',
    width: '100',
    slotName: 'switch'
  },

  {
    prop: 'created_at',
    label: '创建时间'
  },
  {
    label: '操作',
    width: '200',
    slotName: 'operate',
    fixed: 'right'
  }
];

export const formItems = [
  {
    // slotName:
    prop: 'webType',
    label: '站点',
    type: 'select',
    options: [
      {
        label: '中国站',
        value: 1
      },
      {
        label: '国际站',
        value: 2
      },
      {
        label: '宣传站',
        value: 3
      }
    ]
  },
  {
    prop: 'itemType',
    label: '商品类型',
    type: 'select',
    options: [
      {
        label: '在库',
        value: 1
      },
      {
        label: '预售',
        value: 2
      },
      {
        label: '定制',
        value: 3
      }
    ]
  },
  {
    prop: 'warehouse',
    label: '发货仓',
    type: 'select',
    options: [
      {
        label: '上海',
        value: 1
      },
      {
        label: '香港',
        value: 2
      }
    ]
  }
];
